/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kuliza.app.dao.hibernate;

import com.kuliza.app.dao.StudentDao;
import com.kuliza.app.model.Student;
import com.kuliza.app.dao.hibernate.GenericDaoHibernate;
import java.util.List;

/**
 *
 * @author Gaurav Gupta
 */
public class StudentDaoImpl 
        extends GenericDaoHibernate<Student, Long> 
        implements StudentDao {

    public StudentDaoImpl() {
        super(Student.class);
    }

    public List<Student> findByRollNo(int rollNo) {
        return getHibernateTemplate().find("from Student where roll_no=?", rollNo);
    }
    
}
